respond ={'request_id': '1602815809,3e934caa-3d1c-4d80-890d-fa84f28fb2b9',
 'time_used': 1447,
 'faces': [{'face_token': '8a6fb634a214e2f309dcb73fde321b9e',
   'face_rectangle': {'top': 123, 'left': 138, 'width': 90, 'height': 90},
   'attributes': {'gender': {'value': 'Male'},
    'age': {'value': 23},
    'smile': {'value': 99.995, 'threshold': 50.0},
    'headpose': {'pitch_angle': 0.6047415,
     'roll_angle': -2.497425,
     'yaw_angle': -7.126226},
    'blur': {'blurness': {'value': 0.37, 'threshold': 50.0},
     'motionblur': {'value': 0.37, 'threshold': 50.0},
     'gaussianblur': {'value': 0.37, 'threshold': 50.0}},
    'eyestatus': {'left_eye_status': {'no_glass_eye_open': 99.964,
      'no_glass_eye_close': 0.0,
      'normal_glass_eye_open': 0.034,
      'normal_glass_eye_close': 0.0,
      'dark_glasses': 0.0,
      'occlusion': 0.002},
     'right_eye_status': {'no_glass_eye_open': 94.241,
      'no_glass_eye_close': 0.003,
      'normal_glass_eye_open': 5.645,
      'normal_glass_eye_close': 0.053,
      'dark_glasses': 0.001,
      'occlusion': 0.057}},
    'emotion': {'anger': 0.059,
     'disgust': 0.059,
     'fear': 0.059,
     'happiness': 42.294,
     'neutral': 52.431,
     'sadness': 4.92,
     'surprise': 0.179},
    'facequality': {'value': 88.584, 'threshold': 70.1},
    'ethnicity': {'value': ''},
    'beauty': {'male_score': 63.735, 'female_score': 62.853},
    'mouthstatus': {'surgical_mask_or_respirator': 0.0,
     'other_occlusion': 0.0,
     'close': 100.0,
     'open': 0.0},
    'eyegaze': {'left_eye_gaze': {'position_x_coordinate': 0.471,
      'position_y_coordinate': 0.465,
      'vector_x_component': -0.027,
      'vector_y_component': 0.19,
      'vector_z_component': 0.981},
     'right_eye_gaze': {'position_x_coordinate': 0.457,
      'position_y_coordinate': 0.461,
      'vector_x_component': -0.214,
      'vector_y_component': 0.277,
      'vector_z_component': 0.937}},
    'skinstatus': {'health': 70.297,
     'stain': 1.686,
     'dark_circle': 2.601,
     'acne': 0.272},
    'glass': {'value': 'None'}}},
  {'face_token': '1acf34b8b5cf290c9321a73fb01c13a3',
   'face_rectangle': {'top': 122, 'left': 373, 'width': 65, 'height': 65},
   'attributes': {'gender': {'value': 'Female'},
    'age': {'value': 37},
    'smile': {'value': 98.866, 'threshold': 50.0},
    'headpose': {'pitch_angle': 3.2396555,
     'roll_angle': -3.6525803,
     'yaw_angle': -4.9724226},
    'blur': {'blurness': {'value': 1.032, 'threshold': 50.0},
     'motionblur': {'value': 1.032, 'threshold': 50.0},
     'gaussianblur': {'value': 1.032, 'threshold': 50.0}},
    'eyestatus': {'left_eye_status': {'no_glass_eye_open': 99.462,
      'no_glass_eye_close': 0.0,
      'normal_glass_eye_open': 0.538,
      'normal_glass_eye_close': 0.0,
      'dark_glasses': 0.0,
      'occlusion': 0.0},
     'right_eye_status': {'no_glass_eye_open': 99.308,
      'no_glass_eye_close': 0.0,
      'normal_glass_eye_open': 0.689,
      'normal_glass_eye_close': 0.002,
      'dark_glasses': 0.0,
      'occlusion': 0.001}},
    'emotion': {'anger': 0.169,
     'disgust': 7.28,
     'fear': 0.138,
     'happiness': 17.689,
     'neutral': 8.067,
     'sadness': 66.519,
     'surprise': 0.138},
    'facequality': {'value': 90.515, 'threshold': 70.1},
    'ethnicity': {'value': ''},
    'beauty': {'male_score': 47.132, 'female_score': 49.756},
    'mouthstatus': {'surgical_mask_or_respirator': 0.0,
     'other_occlusion': 0.003,
     'close': 93.274,
     'open': 6.723},
    'eyegaze': {'left_eye_gaze': {'position_x_coordinate': 0.483,
      'position_y_coordinate': 0.432,
      'vector_x_component': -0.017,
      'vector_y_component': 0.028,
      'vector_z_component': 0.999},
     'right_eye_gaze': {'position_x_coordinate': 0.461,
      'position_y_coordinate': 0.437,
      'vector_x_component': -0.224,
      'vector_y_component': 0.158,
      'vector_z_component': 0.962}},
    'skinstatus': {'health': 78.151,
     'stain': 7.777,
     'dark_circle': 4.751,
     'acne': 6.603},
    'glass': {'value': 'None'}}},
  {'face_token': '9a38db8b08f8677d792c2844a1d7a8d4',
   'face_rectangle': {'top': 46, 'left': 675, 'width': 54, 'height': 54},
   'attributes': {'gender': {'value': 'Male'},
    'age': {'value': 23},
    'smile': {'value': 100.0, 'threshold': 50.0},
    'headpose': {'pitch_angle': 5.4655566,
     'roll_angle': -1.2741443,
     'yaw_angle': 0.04951204},
    'blur': {'blurness': {'value': 4.988, 'threshold': 50.0},
     'motionblur': {'value': 4.988, 'threshold': 50.0},
     'gaussianblur': {'value': 4.988, 'threshold': 50.0}},
    'eyestatus': {'left_eye_status': {'no_glass_eye_open': 0.296,
      'no_glass_eye_close': 0.026,
      'normal_glass_eye_open': 99.656,
      'normal_glass_eye_close': 0.016,
      'dark_glasses': 0.003,
      'occlusion': 0.004},
     'right_eye_status': {'no_glass_eye_open': 0.026,
      'no_glass_eye_close': 0.0,
      'normal_glass_eye_open': 99.969,
      'normal_glass_eye_close': 0.004,
      'dark_glasses': 0.0,
      'occlusion': 0.0}},
    'emotion': {'anger': 0.0,
     'disgust': 0.0,
     'fear': 0.0,
     'happiness': 99.996,
     'neutral': 0.001,
     'sadness': 0.002,
     'surprise': 0.001},
    'facequality': {'value': 92.534, 'threshold': 70.1},
    'ethnicity': {'value': ''},
    'beauty': {'male_score': 41.427, 'female_score': 42.018},
    'mouthstatus': {'surgical_mask_or_respirator': 0.0,
     'other_occlusion': 0.0,
     'close': 0.0,
     'open': 100.0},
    'eyegaze': {'left_eye_gaze': {'position_x_coordinate': 0.47,
      'position_y_coordinate': 0.415,
      'vector_x_component': 0.785,
      'vector_y_component': 0.108,
      'vector_z_component': 0.61},
     'right_eye_gaze': {'position_x_coordinate': 0.544,
      'position_y_coordinate': 0.081,
      'vector_x_component': -0.618,
      'vector_y_component': -0.531,
      'vector_z_component': 0.579}},
    'skinstatus': {'health': 0.5,
     'stain': 8.234,
     'dark_circle': 3.244,
     'acne': 0.142},
    'glass': {'value': 'Normal'}}},
  {'face_token': '4f5d95b66ce2538efa8168b59423cc44',
   'face_rectangle': {'top': 98, 'left': 235, 'width': 53, 'height': 53},
   'attributes': {'gender': {'value': 'Female'},
    'age': {'value': 22},
    'smile': {'value': 99.997, 'threshold': 50.0},
    'headpose': {'pitch_angle': -2.531932,
     'roll_angle': 4.016266,
     'yaw_angle': -2.450839},
    'blur': {'blurness': {'value': 42.713, 'threshold': 50.0},
     'motionblur': {'value': 42.713, 'threshold': 50.0},
     'gaussianblur': {'value': 42.713, 'threshold': 50.0}},
    'eyestatus': {'left_eye_status': {'no_glass_eye_open': 0.533,
      'no_glass_eye_close': 0.019,
      'normal_glass_eye_open': 98.923,
      'normal_glass_eye_close': 0.495,
      'dark_glasses': 0.005,
      'occlusion': 0.026},
     'right_eye_status': {'no_glass_eye_open': 7.16,
      'no_glass_eye_close': 0.337,
      'normal_glass_eye_open': 92.389,
      'normal_glass_eye_close': 0.098,
      'dark_glasses': 0.001,
      'occlusion': 0.015}},
    'emotion': {'anger': 0.0,
     'disgust': 0.001,
     'fear': 0.0,
     'happiness': 99.99,
     'neutral': 0.009,
     'sadness': 0.0,
     'surprise': 0.0},
    'facequality': {'value': 31.997, 'threshold': 70.1},
    'ethnicity': {'value': ''},
    'beauty': {'male_score': 38.41, 'female_score': 39.542},
    'mouthstatus': {'surgical_mask_or_respirator': 0.0,
     'other_occlusion': 0.011,
     'close': 0.009,
     'open': 99.98},
    'eyegaze': {'left_eye_gaze': {'position_x_coordinate': 0.553,
      'position_y_coordinate': 0.489,
      'vector_x_component': 0.454,
      'vector_y_component': 0.405,
      'vector_z_component': 0.794},
     'right_eye_gaze': {'position_x_coordinate': 0.302,
      'position_y_coordinate': 0.495,
      'vector_x_component': -0.82,
      'vector_y_component': 0.374,
      'vector_z_component': 0.432}},
    'skinstatus': {'health': 3.319,
     'stain': 6.99,
     'dark_circle': 5.649,
     'acne': 0.655},
    'glass': {'value': 'Normal'}}},
  {'face_token': '114c8d0305c8a03d9bd7d29a607601f0',
   'face_rectangle': {'top': 75, 'left': 444, 'width': 52, 'height': 52},
   'attributes': {'gender': {'value': 'Female'},
    'age': {'value': 28},
    'smile': {'value': 99.999, 'threshold': 50.0},
    'headpose': {'pitch_angle': 3.8443422,
     'roll_angle': 0.79213506,
     'yaw_angle': -1.5878781},
    'blur': {'blurness': {'value': 93.521, 'threshold': 50.0},
     'motionblur': {'value': 93.521, 'threshold': 50.0},
     'gaussianblur': {'value': 93.521, 'threshold': 50.0}},
    'eyestatus': {'left_eye_status': {'no_glass_eye_open': 99.548,
      'no_glass_eye_close': 0.0,
      'normal_glass_eye_open': 0.449,
      'normal_glass_eye_close': 0.002,
      'dark_glasses': 0.0,
      'occlusion': 0.001},
     'right_eye_status': {'no_glass_eye_open': 98.901,
      'no_glass_eye_close': 0.0,
      'normal_glass_eye_open': 1.095,
      'normal_glass_eye_close': 0.001,
      'dark_glasses': 0.0,
      'occlusion': 0.002}},
    'emotion': {'anger': 0.001,
     'disgust': 0.001,
     'fear': 0.027,
     'happiness': 99.933,
     'neutral': 0.027,
     'sadness': 0.01,
     'surprise': 0.001},
    'facequality': {'value': 0.006, 'threshold': 70.1},
    'ethnicity': {'value': ''},
    'beauty': {'male_score': 48.26, 'female_score': 46.071},
    'mouthstatus': {'surgical_mask_or_respirator': 0.0,
     'other_occlusion': 0.003,
     'close': 0.011,
     'open': 99.985},
    'eyegaze': {'left_eye_gaze': {'position_x_coordinate': 0.5,
      'position_y_coordinate': 0.421,
      'vector_x_component': 0.487,
      'vector_y_component': 0.161,
      'vector_z_component': 0.859},
     'right_eye_gaze': {'position_x_coordinate': 0.487,
      'position_y_coordinate': 0.402,
      'vector_x_component': -0.271,
      'vector_y_component': 0.207,
      'vector_z_component': 0.94}},
    'skinstatus': {'health': 82.386,
     'stain': 1.748,
     'dark_circle': 3.866,
     'acne': 0.43},
    'glass': {'value': 'None'}}},
  {'face_token': '04c3511fc75d3bd60fd73f67889a33e5',
   'face_rectangle': {'top': 98, 'left': 537, 'width': 48, 'height': 48}}],
 'image_id': 'TfC1AByqtXhfuQ6DruqVww==',
 'face_num': 6}
# 创建字典
dark_glasses = {}
smile = {}
male_score = {}
age = {}
gender = {}

# 把所有人脸的值添加进字典
count = 0
while count < len(respond):
    dark_glasses["Person{}".format(count + 1)] = respond[count]['attributes']['dark_glasses']
    smile["Person{}".format(count + 1)] = respond[count]['smile']
    male_score["Person{}".format(count + 1)] = respond[count]['emotion']['anger']
    age["Person{}".format(count + 1)] = respond[count]['attributes']['age']
    gender["Person{}".format(count + 1)] = respond[count]['attributes']['gender']
    count += 1

# 打印字典
# print("眼镜：", dark_glasses)
# print("微笑指数：", smile)
# print("头发颜色：", hairColor)
# print("年龄：", age)
# print("性别：", gender)
